from flask import Flask
from .admin import adminblueprint
from .home import homeblueprint
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.debug = True
app.register_blueprint(homeblueprint)
app.register_blueprint(adminblueprint, url_prefix='/admin')
app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://root:mysql@127.0.0.1:3306/movie"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
db = SQLAlchemy(app)
